﻿using System;

namespace WebStickyNotes.Contracts
{
    public class TaskAudit : BaseEntity
    {
        public int Id { get; set; }

        /// <summary>
        /// The title is a human-readable description of the action, such as "Delete"
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Descripted the type of the item that was audited
        /// </summary>
        public string AuditFor { get; set; }

        /// <summary>
        /// The Id of the item changed
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        /// The TaskPerson making the change
        /// </summary>
        public int TaskPersonId { get; set; }

        /// <summary>
        /// Serialized item after change (can be compared to previous audited version)
        /// </summary>
        public string ItemAfter { get; set; }

        /// <summary>
        /// Time logged
        /// </summary>
        public DateTime AuditDate { get; set; }
    }
}
